Skip to content

Instantly share code, notes, and snippets.

@son0629
son0629 / Verse.digest.verse
Created November 24, 2023 06:34
Verse.digest.verse V27.11
# Copyright Epic Games, Inc. All Rights Reserved.
#################################################
# Generated Digest of Verse API
# DO NOT modify this manually!
# Generated from build: ++Fortnite+Release-27.11-CL-29739262
#################################################
# Module import path: /Verse.org/Simulation
Simulation<public> := module:
agent<native><public> := class<unique><epic_internal>:
@johnidm
johnidm / readme.md
Last active November 11, 2026 01:19
Retrieve credentials stored in DBeaver

How to recover DB credentials settings stored in DBeaver

If you forgot your password, which is my case, or need to migrate database connection settings from another DBeaver installation, these steps may help.

  • Step 1: Open DBeaver Press: File > Export > DBeaver > Project.
  • Step 2: Change the name of the export file to .zip, and unzip.
  • Step 3: Copy \projects\General\.dbeaver\credentials-config.json and \projects\General\.dbeaver\data-sources.json to the root folder or any other folder you prefer.
  • Step 4: Run the command openssl aes-128-cbc -d -K babb4a9f774ab853c96c2d653dfe544a -iv 00000000000000000000000000000000 -in "credentials-config.json"

Done, it will output to the terminal as default, if you want to save in a file add &gt; chosen_filename.json to the stp 4 command.

@byteab
byteab / hand-drawn-character-creator.html
Created August 17, 2026 15:28
Seeded procedural animated hand drawn like characters, Canvas2D brush strokes on a Three.js rig.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Who are you?</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap" rel="stylesheet">
@markasoftware
markasoftware / enterprise_token.rb
Last active November 11, 2026 01:10
OpenProject Enterprise mode for free
############ If you are using DOCKER all-in-one image, create Dockerfile like: ################
############ FROM openproject/openproject:16 ################
############ COPY ./enterprise_token.rb app/models/enterprise_token.rb ################
############ If you are runing a manual installation: ################
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ If using some other set up (eg docker-compose), read the comments on ################
############ https://gist.github.com/markasoftware/f5b2e55a2c2e3abb1f9eefcdf0bfff45 ################
@SabrCat
SabrCat / HowToDecompileKsp.md
Last active November 11, 2026 01:08
A guide on how to decompile Kerbal Space Program for modding.

Decompiling KSP is technically against the Take2 EULA, but having the KSP Code to reference is an invaluable tool for modding. Hence it's been a bit of an open secret that modders decompile the game to help inform their mod writing. Sadly, nobody has ever fully captured how this is done, so this is what I intend to do here. If you wish to read the Take2 Eula before following this guide, you can find it here.

Notes on Legality

Preface: I am not a lawyer, this is not legal advice, etc. From the research I have done on the topic, I have been able to gather this:

In US and EU legislature it is legal to decompile any program regardless of license restrictions if the purpose of the decompilation is done to enable interoperability (ref1). In the case of KSP I would say this is not given as KSP does provide a public interfac

@TheEnergyStory
TheEnergyStory / CustomMixedModeDLL.cpp
Created November 10, 2026 17:20
Turla CerealLoader-Style Custom Mixed-Mode DLL POC
/**
* This POC replicates the custom mixed-mode technique utilized by Turla’s CerealLoader.
* Reference: https://www.welivesecurity.com/en/eset-research/exchange-for-breakfast-turlas-cereal-tricks-are-not-for-kids/
*
* While classic mixed-mode binaries rely on standard CRT defaults and standard compiler
* initialization, this code splits functionality explicitly between managed and unmanaged
* domains using "#pragma managed" and "#pragma unmanaged" pragmas within the same source.
*
* Key Mechanics & PE-Level Behavior:
* 1. Loader Lock Avoidance: Bypasses standard "_CorDllMain" PE initialization

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@doringeman
doringeman / benchmark_model_runner.py
Created February 26, 2026 12:03
Benchmark script for comparing llama.cpp and vLLM-Metal inference backends via Docker Model Runner's OpenAI-compatible API. Measures wall-clock throughput (tok/s) across configurable runs, prompts, and max token limits.
#!/usr/bin/env python3
"""Benchmark vLLM-Metal vs llama.cpp via Docker Model Runner."""
from __future__ import annotations
import argparse
import json
import time
import urllib.error
import urllib.request
--experimental_extras (enable code compiled in via v8_experimental_extra_library_files)
type: bool default: false
--use_strict (enforce strict mode)
type: bool default: false
--es_staging (enable test-worthy harmony features (for internal use only))
type: bool default: false
--harmony (enable all completed harmony features)
type: bool default: false
--harmony_shipping (enable all shipped harmony features)
type: bool default: true